import axios from '../../utils/axios'
import Orderapi from '../../api/Sale/DDLB'

function commodityPaging() {

    const OrderArr = [];

    return new Promise((resolve, reject) => {
        axios({
            method: "post",
            url: Orderapi.getorder
        }).then(res => {
            OrderArr.push(...res.data.data)
            console.log(OrderArr);
        }).catch(err => {
            console.log("2222");
            console.log(Orderapi.getorder);
            reject(err)
        })
    })
}

export default commodityPaging